$(function () {
  
 
  $.ajax({
    type:'get',
    url:'/user/queryUserMessage',
 
    dataType:'json',
    success:function(res){
      console.log(res)
      if(res.error){
        //
        location.href='login.html'
      }
    }
  })


  $('.lt-next').click(function () {
    console.log(111);
    
    $.ajax({
      type:'get',
      url:'/user/logout',
      
      dataType:'json',
      success:function(res){
        console.log(res)
        var urle=location.href='login.html'
        location.href='user.html?key='+urle
      }
    })

  })
})
